/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.actscode.controller;

import com.icinfo.cloud.provider.punish.actscode.dto.ActsCodeDto;
import com.icinfo.cloud.provider.punish.actscode.service.ICaseActsCodeErrInfoService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述: 处罚赋码失败记录表 case_acts_code_err_info 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2023年03月08日
 */
@Controller
public class CaseActsCodeErrInfoController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(CaseActsCodeErrInfoController.class);

    @Autowired
    private ICaseActsCodeErrInfoService caseActsCodeErrInfoService;

    /**
     * 赋码失败数据重新赋码
     * @author liyafeng
     * @date 2022/11/8
     * @return {@link Result < String>}
     */
    @PostMapping("/reSaveCaseActsCodeInfo")
    public Result<String> reSaveCaseActsCodeInfo(){
        int num=caseActsCodeErrInfoService.reSaveCaseActsCodeInfo();
        if(num>0){
            return Result.success("success","保存成功");
        }
        return Result.error("保存失败");

    }
}